package com.cloudkinto.service.analysis.vo;

import com.cloudkinto.common.utils.MathUtils;
import com.cloudkinto.extentity.cost.MemberPageFee;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class MemberPageFeeRes extends MemberPageFee {
    @ApiModelProperty("同比 比较")
    private double c;
    @ApiModelProperty("环比 比较")
    private double t;


    public double getC() {
        return MathUtils.numberFormat(c * 100, 2);
    }

    public double getT() {
        return MathUtils.numberFormat(t * 100, 2);
    }
}
